﻿CREATE TABLE [dbo].[MarkCondition]
(
    [MarkConditionId] [uniqueidentifier] DEFAULT newid() NOT NULL,
    [Mark] [uniqueidentifier] NOT NULL, -- FK to Mark
    [RequiredMark] [uniqueidentifier] NULL, -- FK to Mark
    [RequiredActivity] [uniqueidentifier] NULL, -- FK to Activity
    [CreatedBy] [uniqueidentifier] NOT NULL, -- FK to Person
    [IsDeleted] [bit] DEFAULT 0 NOT NULL,
	[CreatedOn] [datetime] DEFAULT getdate() NOT NULL,
    [LastChanged] [datetime] DEFAULT getdate() NOT NULL,
	[LastChangedBy] [uniqueidentifier] NOT NULL, -- FK to Person
	[TimeStamp] [timestamp] NOT NULL

CONSTRAINT [PK_MarkCondition] PRIMARY KEY CLUSTERED
(
    [MarkConditionId]
)WITH (IGNORE_DUP_KEY = OFF) ON [PRIMARY]
) ON [PRIMARY]
GO